#ifndef __COMPAT_H__
#define __COMPAT_H__
#include <config.h>

#ifdef __cplusplus
extern "C" {
#endif

#ifndef HAVE_GETHOSTBYNAME_R
extern int gethostbyname_r (__const char *name,
		struct hostent *result_buf,
		char *buf, size_t buflen,
		struct hostent **result,
		int *h_errnop);
#endif

#ifndef HAVE_STRNDUP
extern char *strndup(const char *ori, size_t n);
#endif

#ifdef __cplusplus
};
#endif

#endif
